package com.nitobi.test
{
	import com.nitobi.util.TimerUtil;
	import flexunit.framework.TestCase;
	
	public class TimerUtilTest extends TestCase
	{
		public function testValidateHours():void
		{			
			assertEquals("validateHours should return '' when '.' is being validated", "", TimerUtil.validateHours("."));
			assertEquals("validateHours should return '' when '0.' is being validated", "", TimerUtil.validateHours("0."));
			assertEquals("validateHours should return '' when '0.0' is being validated", "", TimerUtil.validateHours("0.0"));
			assertEquals("validateHours should return '0' when '.0' is being validated", "0", TimerUtil.validateHours(".0"));	
		}
	}
}